package com.oasys.service;

import com.oasys.entity.MenuDto;
import com.oasys.entity.SysMenuEntity;
import com.oasys.utils.ResponseResult;

import java.util.List;

/**
 * @Description: TODO
 * @Author: mis_wu
 * @Date: 2022/5/12
 **/
public interface MenuService {

    /**
     * get menu
     * @param userId
     * @return
     */
    List<MenuDto> findMenusByUserId(Long userId);

    /**
     * 添加菜单
     * @param sysMenu
     * @return
     */
    Boolean addMenu(SysMenuEntity sysMenu);

    /**
     * 获取所有菜单
     * @return
     */
    List<MenuDto> getAllMenus();

    /**
     * 获取所有父级菜单
     * @return list
     */
    List<SysMenuEntity> getAllParentMenus(String menuName);

    /**
     * 添加单个菜单
     * @param sysMenu
     * @return
     */
    ResponseResult<Boolean> addMenuOne(SysMenuEntity sysMenu);
}
